//
//  MyGameButton.h
//  ButtonCocos2D
//
//  Created by admin on 3/23/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "CCSprite.h"

@interface MyGameButton : CCSprite{
    
    NSString* upSpriteFrame;
    NSString* downSpriteFrame;
    NSString* name;
    bool pressed;			
    NSUInteger touchHash;
    
}
@property (readwrite, assign) bool pressed;
@property (readwrite, assign) NSUInteger touchHash;
@property (readwrite, assign) NSString* upSpriteFrame;
@property (readwrite, assign) NSString* downSpriteFrame;
@property (readwrite, assign) NSString* name;


-(void)processTouch:(CGPoint)point;
-(void)processRelease;

- (bool)checkTouchWithPoint:(CGPoint)point;
- (CGRect)rect;
- (void)processTouch:(CGPoint)point;
- (void)processRelease;
- (void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
@end
